<?php
namespace catchAdmin\tenant\model\search;

trait MyPortsSearch
{
    public function searchPortNameAttr($query, $value, $data)
    {
        return $query->whereLike('b.port_name', $value);
    }

    public function searchPortCodeAttr($query, $value, $data)
    {
        return $query->where('b.port_code', $value);
    }

}
